package com.kayt.cyberBar.cuser.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cuser.business.entity.po.BCyberBaseTaskAttach;

public interface ICyberBaseTaskAttachDao {

	public Long addAttach(BCyberBaseTaskAttach attach) throws SQLException;

	public void updateAttach(BCyberBaseTaskAttach attach) throws SQLException;

	public int deleteAttach(String attach);

	public BCyberBaseTaskAttach getAttach(String attachId);

	public BCyberBaseTaskAttach getAttachByCode(String code) throws SQLException;

	public PageData<BCyberBaseTaskAttach> getAttachList(int pageNum, int pageSize, String hql, Object[] params,
			LinkedHashMap<String, String> attachMap) throws SQLException;

	public List getAttachListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

}
